home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20021006-20030409
/
000038_pytcayrn@freemail.hu_Tue Oct 29 09:56:51 EST 2002.msg
< prev
next >
Wrap
Text File
|
2003-04-08
|
3KB
|
68 lines
Article: 13801 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
From: pytcayrn@freemail.hu
Newsgroups: comp.protocols.kermit.misc
Subject: Re: redirect io to external cmd (like cu "~|cmd" and "~$cmd")
Date: 29 Oct 2002 01:37:33 -0800
Organization: http://groups.google.com/
Lines: 49
Message-ID: <86c66124.0210290137.a992437@posting.google.com>
References: <86c66124.0210280643.30d17ab6@posting.google.com> <apjj8d$pk3$1@watsol.cc.columbia.edu>
NNTP-Posting-Host: 193.225.153.29
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1035884253 26477 127.0.0.1 (29 Oct 2002 09:37:33 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 29 Oct 2002 09:37:33 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13801
Thanks a lot, that's exactly what I was looking for.
I managed to log the output to a file, and then "tail -f" the file to
"od", so this solved my problem. BTW logging the output to "|od >
session.log" failed for me (the "od" process didn't even show up in
"ps -ef"). I guess I well escaped the space characters with an "\".
I few other questions that I would be very happy to get some answer:
How can I stop kermit to print the data to the screen, so that the
data should only be printed to the session.log file?
Does kermit have an echo-like built-in function with which I could
send binary data to the serial line from kermit prompt, e.g. "echo
0xFF,0x1D,0xB3" while the connection is alive and data is dumped to
session.log ?
I am trying to communicate with a GPS receiver :)
Thanks again,
Tamas
fdc@columbia.edu (Frank da Cruz) wrote in message news:<apjj8d$pk3$1@watsol.cc.columbia.edu>...
> In article <86c66124.0210280643.30d17ab6@posting.google.com>,
> <pytcayrn@freemail.hu> wrote:
> : In C-kermit 7.0 (HP-UX), how can I redirect binary data coming from a
> : directly connected device on /dev/tty0p2 to an external application
> : like "od -tx1", so that decoded hexa numbers should appear on the
> : screen after I issue a "CONNECT" command?
> :
> You can't make hex numbers appear on the screen but you can make them
> go into a session log file:
>
> set port /dev/tty0p2
> set speed 57600 ; or whatever
> set flow rts/cts ; or whatever
> set session log binary
> log session "|od -tx1 > session.log"
>
> : And how can I do the reverse:
> : starting an external command whose output is dumped to the serial
> : line?
> :
> redirect <command>
>
> : These functions exist in "cu" ("~|cmd" and "~$cmd") but using them in
> : kermit would be more convenient.
>
> - Frank